//
//  ComicCusttomController.m
//  动漫之家
//
//  Created by 王少泽 on 16/11/17.
//  Copyright © 2016年 王少泽. All rights reserved.
//

#import "ComicCusttomController.h"

@interface ComicCusttomController ()

@end

@implementation ComicCusttomController

//- (instancetype)initWithRootViewController:(UIViewController *)rootViewController
//{
//    //自定义的导航条添加toolbar进行
//    self = [super initWithRootViewController:rootViewController];
//    if (self) {
//       // [self.navigationController.navigationBar setFrame:CGRectMake(0, 20,
//        self.navigationController.navigationBarHidden = YES;
//        UIView* controller = [[UIView alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 40)];
//        //controller.backgroundColor = [UIColor blueColor];
//        UIToolbar* tool = [[UIToolbar alloc]initWithFrame:controller.frame];
//        UIButton* tuijian = [UIButton buttonWithType:UIButtonTypeSystem];
//        tuijian.frame = CGRectMake(0, 20, 80, 40);
//        [tuijian setTitle:@"推荐" forState:UIControlStateHighlighted];
//        [tool addSubview:tuijian];
//        //[controller addSubview:tool];
//        //[self.view addSubview:controller];
//        [self.view addSubview:tool];
//    }
//    return self;
//}



- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
//        for (UIView *view in self.navigationController.view.subviews) {
//        if (![view isMemberOfClass:[UINavigationBar class]]) {
//            [view setFrame:CGRectMake(0, -4, 320, 484)];//这里调整内容区域大小位置
//        }
//    }
    self.navigationController.navigationBar.frame = CGRectMake(0, 20, self.view.frame.size.width, 20);
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
